package lab02.test07;

public class Student extends Person{
    private  String num;
    private  String school;

    public  Student(){}

    public Student(String name,int age, String idNum,String num,String school){
        super(name,age,idNum);
        this.num=num;
        this.school=school;

    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    @Override
    public String toString() {
        return super.toString()+"\n"+"学号："+num+"\n"+"学校："+school;
    }
}
